package com.itic.web.mem.pointwater.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itic.appbase.framework.common.controller.BaseController;
import com.itic.ht.mem.pointoffer.persistence.model.PointOffer;
import com.itic.ht.mem.pointwater.persistence.model.WebPointWater;
import com.itic.web.mem.pointwater.service.AppPointWaterService;
import com.itic.web.qo.TokenData;
import com.itic.web.ro.ResResult;


@Controller
@RequestMapping(value="/app/pointwater")
public class AppPointWaterController extends BaseController {
    @Autowired
    private AppPointWaterService appPointWaterService;

    /**
     * 添加积分流水
     * @param android
     * @return
     */
    @RequestMapping(value="/add")
    @ResponseBody
    public ResResult add(WebPointWater temp,TokenData data){
    	return appPointWaterService.add(temp,data);
    }
    /**
     * 添加积分兑换申请
     * @param android
     * @return
     */
    @RequestMapping(value="/addoffer")
    @ResponseBody
    public ResResult addoffer(PointOffer temp,TokenData data){
    	return appPointWaterService.addOffer(temp,data);
    }
    /**
     * 添加积分兑换申请
     * @param android
     * @return
     */
    @RequestMapping(value="/getMyOfferList")
    @ResponseBody
    public ResResult getMyOfferList(TokenData data){
    	return appPointWaterService.getMyOfferList(data);
    }
    
    /**
     * 积分兑换类型列表
     * @param android
     * @return
     */
    @RequestMapping(value="/executetype")
    @ResponseBody
    public ResResult executeType(TokenData data){
    	
    	return appPointWaterService.executeType(data);
    }
    
    /**
     * 我的积分流水
     * @param android
     * @return
     */
    @RequestMapping(value="/list")
    @ResponseBody
    public ResResult list(WebPointWater temp,TokenData data){
    	
    	return appPointWaterService.add(temp,data);
    }
  
    

}